package hos.demo;

import java.util.Map;

import hos.http.HttpRequest;
import hos.http.anotation.BaseUrl;
import hos.http.anotation.BaseUrlEnd;
import hos.http.anotation.Data;
import hos.http.anotation.GET;
import hos.http.anotation.Headers;
import hos.http.anotation.POST;
import hos.http.anotation.Param;
import hos.http.anotation.Query;
import hos.http.anotation.Type;
import hos.http.anotation.Url;

/**
 * <p>Title: TestService </p>
 * <p>Description:  </p>
 * <p>Company: www.mapuni.com </p>
 *
 * @author : 蔡俊峰
 * @version : 1.0
 * @date : 2024-04-12 16:28
 */
@BaseUrl(value = "https://ark.xiaohongshu.com")
@BaseUrlEnd(value = "/ark/open_api/v3")
@Headers({"start:start", "starting:starting"})
public interface TestService {

    @GET
    @Type(value = {String.class})
    HttpRequest<?> getBaiDu(@Url String url,
                            @Query(value = "mine") String mine,
                            @Param(value = "key") String value,
                            @Param(value = "word") String word);

    @POST(value = "/common_controller")
    HttpRequest<?> postXiaoHongShu(
            @Data() Map<String, Object> value,
            @Query(value = "mine") String mine,
            @Param(value = "word") String word);
}
